package com.wowudi.controller;

import com.wowudi.model.power.Popedom;
import com.wowudi.service.PopedomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("popedom")
public class PopedomController {

    @Autowired
    private PopedomService popedomService;

    @RequestMapping("findByUId")
    public List<Popedom> findByUId(int uid){
        List<Popedom> popedoms = popedomService.findByUId(uid);
        return popedoms;
    }
}
